package com.example.demo.base.login.service;

import com.example.demo.base.login.dto.AdminAcativityVo;
import com.example.demo.base.login.dto.AdminRegisterVo;
import com.example.demo.base.login.dto.AdminRegisterWebVo;
import com.example.demo.base.login.dto.LoginVo;
import com.example.demo.base.login.dto.LoginWebVo;
import com.example.demo.base.login.dto.RsaPublicKeyBo;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpServletRequest;
import java.security.PublicKey;

/**
 *
 */
@Service
public interface ExamUserService {
    /**
     * 用户登陆
     * @param loginVo
     * @param request
     * @return
     */
    LoginWebVo userLogin(LoginVo loginVo, HttpServletRequest request);



    RsaPublicKeyBo getPublicKey();

    void modifyPwd(LoginVo loginVo);

    void getPhoneCode(LoginVo loginVo);


    AdminRegisterWebVo adminRegister(AdminRegisterVo adminRegisterVo, HttpServletRequest request);

    AdminRegisterWebVo userRegister(AdminRegisterVo adminRegisterVo, HttpServletRequest request);


    Void adminAcativity(AdminAcativityVo adminAcativityVo);
}
